﻿namespace Traffic.Entity;

/// <summary>
/// 业务订单
/// </summary>
public partial class ScopeOrderList
{
    public int Id { get; set; }

    /// <summary>
    /// 所属商户ID。对应Business.ID
    /// </summary>
    public int BusinessId { get; set; }

    /// <summary>
    /// 订单类型   1：正常订单   1：需接送订单
    /// </summary>
    public int OrderType { get; set; }

    /// <summary>
    /// 业务订单编号S+yyyyMMddHHmm+TodayCount
    /// </summary>
    public string OrderNum { get; set; } = null!;

    /// <summary>
    /// 用户ID，对应UserData.ID，终端默认为0.
    /// </summary>
    public int UserId { get; set; }

    /// <summary>
    /// 成人人数
    /// </summary>
    public int Adult { get; set; }

    /// <summary>
    /// 小孩人数
    /// </summary>
    public int Child { get; set; }

    /// <summary>
    /// 婴儿人数
    /// </summary>
    public int Baby { get; set; }

    /// <summary>
    /// 联系人姓名
    /// </summary>
    public string? Contact { get; set; }

    /// <summary>
    /// 联系人电话
    /// </summary>
    public string? Mobile { get; set; }

    /// <summary>
    /// 地址   租车或旅游用
    /// </summary>
    public string? Address { get; set; }

    /// <summary>
    /// 行李件数
    /// </summary>
    public int LuggageCount { get; set; }

    /// <summary>
    /// 订单创建时间
    /// </summary>
    public DateTime CreateDate { get; set; }

    /// <summary>
    /// 出发日期
    /// </summary>
    public DateTime? SetDate { get; set; }

    /// <summary>
    /// 订单完成时间
    /// </summary>
    public DateTime? CheckTime { get; set; }

    /// <summary>
    /// 总价
    /// </summary>
    public decimal TotalPrice { get; set; }

    /// <summary>
    /// 订单状态  0：生成保存状态，待支付  1：已支付  2：已完成   3：发起退款   4：退票成功
    /// </summary>
    public int OrderState { get; set; }

    /// <summary>
    /// 订单确认  默认1：确认  若OrderType=2预订车时，则需为0未确认，待操作人员人工确认。
    /// </summary>
    public bool OrderCheck { get; set; }

    /// <summary>
    /// 客户订单备注
    /// </summary>
    public string? OrderRemarks { get; set; }

    /// <summary>
    /// 计调操作员备注
    /// </summary>
    public string? OperatorRemarks { get; set; }

    /// <summary>
    /// 订单状态  默认1正常  0：作废  1：正常
    /// </summary>
    public bool Status { get; set; }
}
